﻿using codeparser.net.v2.Entities;

using System;

namespace codeparser.net.v2.Lexer
{
    /// <summary>
    /// Represents the state attribute value end.
    /// </summary>
    internal class StateAttributeValueEnd : StateBase
    {
        /// <summary>
        /// Processes a right bracket.
        /// </summary>
        /// <param name="lexer">The lexer.</param>
        internal override void ProcessRightBracket(Lexer lexer)
        {
            lexer.CurrentState = new StateRightBracket();
        }

        /// <summary>
        /// Processes a space.
        /// </summary>
        /// <param name="lexer">The lexer.</param>
        internal override void ProcessSpace(Lexer lexer)
        {
            lexer.CurrentState = new StateSpace();
        }

        /// <summary>
        /// Gets the token type.
        /// </summary>
        /// <value>The token type.</value>
        internal override TokenType TokenType
        {
            get
            {
                return TokenType.AttributeValueEnd;
            }
        }
    }
}